<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColLinkTypeToMessageTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {


        Schema::table('message', function(Blueprint $table)
        {
            $table->dropColumn(['unit_apply_id']);
            $table->integer('link_id')->default(0)->comment('单位入驻id||个人认证id')->after('type');
            $table->string('link_type')->nullable()->comment('跳转类型personal_auth:个人认证 company_set:单位入驻')->after('link_id');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
